package cn.itrip.auth.service;

import cn.itrip.beans.pojo.ItripUser;

public interface ItripUserService {
    /**
     * 注册
     * @param itripUser
     * @return
     * @throws Exception
     */
    public void insertItripUser(ItripUser itripUser)throws Exception;

    /**
     *
     * @param mail
     * @param code
     * @return
     * @throws Exception
     */
    public boolean activate(String mail,String code) throws Exception;



    ItripUser getItripUserCountByMap(String userCode) throws Exception;

    public void insertItripUserPhone(ItripUser user)throws Exception;

    public  boolean validatePhone(String phoneNum,String code)throws Exception;

    public  ItripUser login(String userCode,String userPassword) throws Exception;
}

